package com.aaa.controller;


import com.aaa.entity.Shopping;
import com.aaa.service.impl.ShoppingServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("shopping")
@Slf4j
public class ShoppingController {

    @Resource
    ShoppingServiceImpl shoppingService;

    @RequestMapping("Sadd")
    @ResponseBody
    public Integer Sadd(Shopping shopping){
        return shoppingService.Sadd(shopping);
    }
}
